package com.pubinfo.passbook.data.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.pubinfo.passbook.common.entity.TFileElectronicFtp;
import com.pubinfo.passbook.common.entity.TFileInfo;
import com.pubinfo.passbook.common.entity.TSourceArtificial;
import com.pubinfo.passbook.common.model.dto.MDM.TSourceArtificialParam;
import com.pubinfo.passbook.common.model.dto.file.ArtificialParam;
import com.pubinfo.passbook.common.model.vo.rule.TSourceArtificialDetailVo;

import java.io.IOException;
import java.util.List;

public interface ArtificialService {
  //保存上传文件以及相关的花费金额、核定金额、数量、报销人等
  Boolean saveArtificial(ArtificialParam artificialParam) throws IOException;
  
  //查询当前登录用户上传的所有人工报账
  IPage<TSourceArtificialDetailVo> selectArtificialByCreateUser(TSourceArtificialParam param);
  
  //查询某条人工报账上传的所有附件
  List<TFileInfo> selectTfileInfoByArtificialId(String artificialId);
  
  List<TFileElectronicFtp> findFileFtpByArtificialList(List<TSourceArtificial> artificialList);
}
